This makes debugging mainloop-related issues more pleasant.
cairo_surface_t *win_surface;
cairo_surface_t *surface;
cairo_t *cr;
+ guint id;
if (success)
{
anim->frame_clock = gdk_window_get_frame_clock (x11_context->drag_window);
anim->start_time = gdk_frame_clock_get_frame_time (anim->frame_clock);
- gdk_threads_add_timeout_full (G_PRIORITY_DEFAULT, 17,
- gdk_drag_anim_timeout, anim,
- (GDestroyNotify) gdk_drag_anim_destroy);
+ id = gdk_threads_add_timeout_full (G_PRIORITY_DEFAULT, 17,
+ gdk_drag_anim_timeout, anim,
+ (GDestroyNotify) gdk_drag_anim_destroy);
+ g_source_set_name_by_id (id, "[gtk+] gdk_drag_anim_timeout");
}
static gboolean
g_cclosure_new_object (G_CALLBACK (check_completion_callback),
G_OBJECT (completion)));
g_source_attach (completion->priv->check_completion_idle, NULL);
+ g_source_set_name (completion->priv->check_completion_idle, "[gtk+] check_completion_callback");
}
}
gtk_gesture_get_point (gesture, sequence,
&priv->initial_x, &priv->initial_y);
- priv->timeout_id =
- gdk_threads_add_timeout (delay,
- _gtk_gesture_long_press_timeout,
- gesture);
+ priv->timeout_id = gdk_threads_add_timeout (delay, _gtk_gesture_long_press_timeout, gesture);
+ g_source_set_name_by_id (priv->timeout_id, "[gtk+] _gtk_gesture_long_press_timeout");
}
static void
settings = gtk_widget_get_settings (widget);
g_object_get (settings, "gtk-double-click-time", &double_click_time, NULL);
- priv->double_click_timeout_id =
- gdk_threads_add_timeout (double_click_time,
- _double_click_timeout_cb,
- gesture);
+ priv->double_click_timeout_id = gdk_threads_add_timeout (double_click_time,
+ _double_click_timeout_cb,
+ gesture);
+ g_source_set_name_by_id (priv->double_click_timeout_id, "[gtk+] _double_click_timeout_cb");
}
static gboolean
if (on_scrollbar)
indicator_set_over (indicator, TRUE);
else if (indicator_close && !on_other_scrollbar)
- indicator->over_timeout_id = gdk_threads_add_timeout (30, enable_over_timeout_cb, indicator);
+ {
+ indicator->over_timeout_id = gdk_threads_add_timeout (30, enable_over_timeout_cb, indicator);
+ g_source_set_name_by_id (indicator->over_timeout_id, "[gtk+] enable_over_timeout_cb");
+ }
else
indicator_set_over (indicator, FALSE);
if (visible)
{
+if (indicator->conceil_timer != 0) g_print ("leaking conceil_timer!\n");
indicator->conceil_timer = g_timeout_add (INDICATOR_FADE_OUT_TIME, maybe_hide_indicator, indicator);
+ g_source_set_name_by_id (indicator->conceil_timer, "[gtk+] maybe_hide_indicator");
}
if (!visible && gtk_widget_get_mapped (indicator->scrollbar) &&
indicator->conceil_timer != 0)